package com.ff.cms.dao;

import com.ff.cms.bean.Article;
import com.ff.cms.bean.Comment;
import com.ff.cms.bean.Type;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CommentMapper {
    int insert(Comment record);

    int insertSelective(Comment record);

	void pushAndcancel(Map<String, Object> map);

	Map<String, Object> findById(Integer idt);

	void delete(Integer[] array);

	void update(Article article);

	void save(Article article);

	List<Type> findTypeList();

	Integer findCommentCount(HashMap<String, Object> mapCount);

	List<Map<String, Object>> list(HashMap<String, Object> mapLimit);

}